package eu.boss.activities;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;
import eu.boss.R;

/**
 * Main activity. Two TabWidget.
 * @author Arnaud
 *
 */
public class TabHostActivity extends TabActivity{

	private TabHost mTabHost;
	private TabSpec mTabSpec;
	
	
	@Override
	public void onCreate(Bundle savedInstanceState) {

	super.onCreate(savedInstanceState);
	setContentView(R.layout.maintabhost);

	Intent intent = new Intent(this, ShadowStatsActivity.class);
	//Intent intent2 = new Intent (this, TeamStatsActivity.class);
	Intent intent3 = new Intent(this, GameActivity.class);
	

	mTabHost = getTabHost();

	mTabSpec = mTabHost.newTabSpec("individual_stats").setIndicator("",
	getResources().getDrawable(R.drawable.icon_stats_players)).setContent(intent);
	mTabHost.addTab(mTabSpec);
	
//	mTabSpec = mTabHost.newTabSpec("team_stats").setIndicator("",
//			getResources().getDrawable(R.drawable.icon_stats_teams)).setContent(intent2);
//	mTabHost.addTab(mTabSpec);

	mTabSpec = mTabHost.newTabSpec("game").setIndicator("",
			getResources().getDrawable(R.drawable.icon_game)).setContent(intent3);
	mTabHost.addTab(mTabSpec);
	
	}
}
